<?php
include ("include.php");
$danhba = new class_danhba();
$danhba_cat = new class_danhba_cat();

//Layout
$layout_file = $arr_layout["sub"];
include("html_layout.php");

if($star > 0 ){ 
	$sql = "select * from danhba where star = $star order by  orders desc, star desc";
}else{
	$sql = "select * from danhba where star > 3 order by orders desc, star desc";
}

//$sql = "select * from danhba where langid='$langid' and danhba_cat='$id' order by maso";
//echo "$sql<br>";
$str_content = $danhba->list_item($sql, 1, SP_IMAGES_SMALL_WIDTH, $which_page, "star.php");
$str_htm = ereg_replace("@noidung@", "$str_content", $str_htm);
$str_htm = ereg_replace("@total@", $danhba->total_website."", $str_htm);





//Header Loading - CSS, Meta, Javascript ...
include("html_header.php");

//Body Loading - Date-Time, ...
include("html_body.php");	

$menu_left_id = $arr_tintuc_id[$langid]["shopping"];
//Menu include
include("html_menu.php");

//Modules include
include("modules.php");

print $str_htm;
?>